var e = require("../@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var r = require("../@babel/runtime/helpers/objectSpread2");

require("../@babel/runtime/helpers/Arrayincludes");

var t = e(require("../service/index")), i = [ "0", "00000", "20001" ], n = "https://kapi.10010.com";

function o(e) {
    return new Promise(function(r, t) {
        e.then(function(e) {
            i.includes(e.code + "") ? r(e) : t(e);
        });
    });
}

var u = {
    getUserInfo: function(e) {
        return o(t.default.post("/KCard/superVip/authenticate", r({
            env: "miniPro"
        }, e), {
            fromSuperMemberGold: !0,
            baseUrl: n,
            contentType: "application/x-www-form-urlencoded"
        }));
    },
    getRightList: function(e) {
        return o(t.default.post("/KCard/superVip/rightList", r({
            env: "miniPro"
        }, e), {
            fromSuperMemberGold: !0,
            baseUrl: n,
            contentType: "application/x-www-form-urlencoded"
        }));
    },
    receiveRight: function(e) {
        return o(t.default.post("/KCard/superVip/receiveRight", r({
            env: "miniPro"
        }, e), {
            fromSuperMemberGold: !0,
            baseUrl: n,
            contentType: "application/x-www-form-urlencoded"
        }));
    }
};

exports.default = u;